<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Event</title>
<script src="../src/js/YAHOO.js" type="text/javascript"></script>
<style type="text/css">
    #linkContainer {
        position: relative;
        padding: 10px;
        border: 1px solid #333333;
        height: 300px;
        width: 150px;
    }
</style>
<script type="text/javascript">

var A = function() { }
A.prototype.a = function() {
    alert("a");
}

var B = function() { }
B.prototype.b = function() {
    alert("b");
}

var C = function() { 
    var a = new A();
    var b = new B();
    return YAHOO.compose(a, b);
}

var c = new C();
c.a();
c.b();

</script>
<body>

<a href="javascript:;">Does nothing</a>
<div id="linkContainer">
  <h3>Header does nothing</h3>
</div>
<input id="addButton" type="button" value="Add link" />
</body>

</html>

